package yaohua.main;

import android.app.AlertDialog;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.widget.TabHost;

/**
 * Tab主界面
 * 
 * @author yh
 * 
 */
public class MyTabActivity extends TabActivity
	{

		@Override
		protected void onCreate(Bundle savedInstanceState)
			{

				super.onCreate(savedInstanceState);
				// 设置无标题
				requestWindowFeature(Window.FEATURE_NO_TITLE);
				final TabHost tabHost = getTabHost();
				tabHost.addTab(tabHost.newTabSpec("tag1").setIndicator("借还查询").setContent(new Intent(this, BorrowActivity.class)));
				tabHost.addTab(tabHost.newTabSpec("tag2").setIndicator("预约查询").setContent(new Intent(this, ReservationActivity.class)));
				tabHost.addTab(tabHost.newTabSpec("tag3").setIndicator("超期文献").setContent(new Intent(this, ExtendedActivity.class)));
				tabHost.addTab(tabHost.newTabSpec("tag4").setIndicator("文献检索").setContent(new Intent(this, SearchActivity.class)));

			}

	}
